package com.breaktian.demoapp.ui;

import android.os.Bundle;
import android.view.View;

import com.breaktian.assemble.router.VpRouter;
import com.breaktian.demoapp.R;
import com.breaktian.demoapp.provider.BaseProvider;
import com.breaktian.demoapp.ui.base.BaseActivity;

public class TestCordovaActivity extends BaseActivity {

    private TestCordovaActivity context;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test_cordova);
        this.context = this;
        init();

    }

    private void init() {
        findViewById(R.id.button1).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                VpRouter.get().activity(context).jump("http://www.baidu.com");
            }
        });

    }

    @Override
    protected BaseProvider getProvider() {
        return null;
    }
}
